# from rest_framework.routers import DefaultRouter
#
# from apps.item import views
#
# urlpatterns = [
#
# ]
#
# # 路由Router: 动态生成视图集中处理函数的url配置项
# router = DefaultRouter()  # 路由Router
# router.register('subject', views.SubjectViewSet)  # 向路由Router中注册视图集
#
# urlpatterns += router.urls  # 将路由Router生成的url配置信息添加到django的路由列表中
from django.conf.urls import url
from django.contrib import admin


from apps.item import views

urlpatterns = [
    url(r'^$', views.IndexView.as_view(), name='index'),
    url(r'^subjects/$', views.SubjectsView.as_view(), name='subject'),
    url(r'^selection/$', views.SelectionView.as_view(), name='selection'),
    url(r'^label/$', views.LabelView.as_view(), name='label'),
    url(r'^subject/del/$', views.DelView.as_view(), name='del'),
    url(r'^labels/$', views.LabelsView.as_view(), name='labels'),
    url(r'^labels/selection/$', views.LabelSelectView.as_view(), name='label_select'),
    url(r'^labels/settlement/$', views.LabelSettlementView.as_view(), name='label_settlement'),
    url(r'^add/checked/$', views.CheckedView.as_view(), name='checked'),
    url(r'^add/$', views.AddView.as_view(), name='subject'),
    url(r'^add/essay$', views.AddEssayView.as_view(), name='essay'),
    url(r'^add/multiple$', views.AddMultipleView.as_view(), name='multiple'),
    url(r'^add/true$', views.AddTrueView.as_view(), name='true'),

]
